
<%@ page import="br.academia.Professor"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName" value="${message(code: 'professor.label', default: 'Professor')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label" /></a></span> <span class="menuButton"><g:link
				class="list" action="list">
				<g:message code="default.list.label" args="[entityName]" />
			</g:link></span> <span class="menuButton"><g:link class="create" action="create">
				<g:message code="default.new.label" args="[entityName]" />
			</g:link></span>
	</div>

	<h1 id="pageName">Mostra Professor</h1>
	<g:if test="${flash.message}">
		<div class="message">
			${flash.message}
		</div>
	</g:if>
	<table class="IadTableShow">
		<tbody>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.id.label" default="Id" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "id")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.username.label" default="Username" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "username")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.nome.label" default="Nome" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "nome")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.telefone.label" default="Telefone" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "telefone")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.matricula.label" default="Matricula" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "matricula")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.dataDeIngresso.label" default="Data De Ingresso" /></td>

				<td valign="top" class="value"><g:formatDate date="${professorInstance?.dataDeIngresso}" /></td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.totalDePontos.label" default="Total De Pontos" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "totalDePontos")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.departamento.label" default="Departamento" /></td>

				<td valign="top" class="value"><g:link controller="departamento" action="show" id="${professorInstance?.departamento?.id}">
						${professorInstance?.departamento?.encodeAsHTML()}
					</g:link></td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.classe.label" default="Classe" /></td>

				<td valign="top" class="value"><g:link controller="classeDoProfessor" action="show" id="${professorInstance?.classe?.id}">
						${professorInstance?.classe?.encodeAsHTML()}
					</g:link></td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.nivel.label" default="Nivel" /></td>

				<td valign="top" class="value"><g:link controller="nivelDoProfessor" action="show" id="${professorInstance?.nivel?.id}">
						${professorInstance?.nivel?.encodeAsHTML()}
					</g:link></td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.CPF.label" default="CPF" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "CPF")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.atividadesAdministrativas.label" default="Atividades Administrativas" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${professorInstance.atividadesAdministrativas}" var="a">
							<li><g:link controller="atividadeAdministrativa" action="show" id="${a.id}">
									${a?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.atividadesEnsino.label" default="Atividades Ensino" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${professorInstance.atividadesEnsino}" var="a">
							<li><g:link controller="atividadeEnsino" action="show" id="${a.id}">
									${a?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.email.label" default="Email" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "email")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.memorial.label" default="Memorial" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${professorInstance.memorial}" var="m">
							<li><g:link controller="memorial" action="show" id="${m.id}">
									${m?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.orientacoes.label" default="Orientacoes" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${professorInstance.orientacoes}" var="o">
							<li><g:link controller="orientacao" action="show" id="${o.id}">
									${o?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.passwordHash.label" default="Password Hash" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "passwordHash")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.permissions.label" default="Permissions" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: professorInstance, field: "permissions")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.producoesAcademica.label" default="Producoes Academica" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${professorInstance.producoesAcademica}" var="p">
							<li><g:link controller="producaoAcademica" action="show" id="${p.id}">
									${p?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>

			</tr>

		</tbody>
	</table>
	<div class="buttons">
		<g:form>
			<g:hiddenField name="id" value="${professorInstance?.id}" />
			<span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
			<span class="button"><g:actionSubmit class="delete" action="delete"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
		</g:form>
	</div>
</body>
</html>
